<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
<xsl:if test="count(rows/row)!=0">
    <div class="datahead">
        <div class="colLeft center" style="WIDTH: 50px"> 编码 </div>
        <div class="colLeft" style="WIDTH: 360px"> 模板|新闻标题 </div>
        <div class="colLeft center" style="WIDTH: 120px"> 栏目 </div>
        <div class="colLeft center" style="WIDTH: 50px"> 作者 </div>
        <div class="colLeft center" style="WIDTH: 50px"> 录入 </div>
        <div class="colLeft center" style="WIDTH: 60px"> 推荐 </div>
        <div class="colLeft center" style="WIDTH: 50px"> 状态 </div>
        <div class="colLeft center" style="WIDTH: 80px"> 更新时间 </div>
        <div class="colRight center" style="WIDTH: 80px;"> 操作 </div>
      </div>
      
      <div class="datalist">
        <xsl:for-each select="rows/row">
          <div class="row" >
            <xsl:attribute name="onclick">javascript:TM.swithClass(this,'row','row selectBg')</xsl:attribute>
            <div class="colLeft center" style="WIDTH: 50px" title="{ID}"><xsl:value-of select="ID"/></div>
          
            <div class="colLeft" style="WIDTH: 360px;"><a class="L" href="javascript:">
              <xsl:attribute name="onclick">TM.openTab('编辑资讯','siteid=<xsl:value-of select="page:xRequest('siteid')"/>&amp;id=<xsl:value-of select="ID"/>','编辑(<xsl:value-of select="substring(F_Title,1,8)"/>)')</xsl:attribute>
              <xsl:attribute name="title"><xsl:value-of select="F_Title"/></xsl:attribute>
              <xsl:value-of select="F_Title"/>&nbsp;</a></div>
            <div class="colLeft center" style="WIDTH: 120px;">
              <xsl:attribute name="title"><xsl:value-of select="F_Catalog_Name"/></xsl:attribute>
              <xsl:value-of select="F_Catalog_Name"/></div>
            <div class="colLeft center" style="WIDTH: 50px;">
              <xsl:attribute name="title"><xsl:value-of select="F_UserName"/></xsl:attribute>
              <xsl:value-of select="F_Author"/>&nbsp;</div>
            <div class="colLeft center" style="WIDTH: 50px;">
              <xsl:attribute name="title"><xsl:value-of select="F_UserName"/></xsl:attribute>
              <xsl:value-of select="F_UserName"/></div>
            <div class="colLeft center" style="WIDTH: 60px">
              <xsl:choose>
                <xsl:when test="F_Recommend!=0">
                  推荐(<xsl:value-of select="F_Recommend"/>)
                </xsl:when>
                <xsl:otherwise>
                  <font color="#666666">-</font>
                </xsl:otherwise>
              </xsl:choose>
            </div>
            <div class="colLeft center" style="WIDTH: 50px">
              <xsl:choose>
                <xsl:when test="F_State=9">
                  <font color="#ff0000">删除</font>
                </xsl:when>
                <xsl:otherwise>
                  <font color="#666666">正常</font>
                </xsl:otherwise>
              </xsl:choose>
            </div>
            <div class="colLeft center" style="WIDTH: 80px">
              <xsl:attribute name="title"><xsl:value-of select="F_UpdateTime"/></xsl:attribute>
              <xsl:value-of select="substring(F_UpdateTime,6,11)"/></div>
            <div class="colRight center" style="WIDTH: 80px;"><a href="javascript:void(0)//{ID}">
              <xsl:attribute name="onclick">if(TM.doConfirmCmd('删除头条新闻','删除头条新闻','id=<xsl:value-of select="ID"/>')==1)TM.tList();</xsl:attribute>
              删除</a></div>
          </div>
        </xsl:for-each>
      </div>
    </xsl:if>
</xsl:template>
</xsl:stylesheet>